﻿<%@ Page Title="Køb" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="purchase.aspx.cs" Inherits="UCNKompetenceBors.purchase" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="purchaseContentWrapper" class="floatLeft">
        <div id="purchaseFilterBox" class="contentBoxLarge floatLeft">
            <div id="purchaseFilterWrapper" class="floatLeft">
                <div id="purchaseFilter" class="purchaseSaleFilter">
                    <asp:Label ID="lblFilterHeader" CssClass="contentTitle" runat="server" Text="Filter"></asp:Label>
                    <div class="filterBoxRow floatLeft">
                        <div class="filterBoxSpacing floatLeft">
                            <asp:Label ID="lblFilterCategory" runat="server" Text="Kategori: "></asp:Label>
                            <asp:DropDownList ID="ddlFilterCategory" runat="server" Width="200px"></asp:DropDownList>
                        </div>
                        <div class="filterBoxSpacing floatLeft">
                            <asp:Label ID="lblFilterTimeSpan" runat="server" Text="Tidsrum: "></asp:Label>
                            <asp:DropDownList ID="ddlFilterTimeSpan" runat="server" Width="200px"></asp:DropDownList>
                        </div>
                        <div class="filterBoxSpacing floatLeft">
                            <asp:Label ID="lblFilterSearch" runat="server" Text="Fritekst søgning: "></asp:Label>
                            <asp:TextBox ID="txtFilterSearch" runat="server" Width="197px"></asp:TextBox>
                        </div>
                    </div>
                    <div class="filterBoxRow floatLeft">
                        <div class="floatRight">
                            <asp:Button ID="btnFilter" runat="server" Text="Filtrér" OnClick="btnFilter_Click" CssClass="button" />
                        </div>
                    </div>
                </div>
                
            </div>
        </div>
        <div id="purchaseCreateLinkBox" class="contentBoxLarge floatLeft">
            <div style="text-align:center; margin: 5px 0 5px 0">
                <asp:HyperLink ID="hyLinkCreatePurchase" CssClass="link" runat="server" Text="Har du brug for hjælp? Leder du efter kompetencer du ikke selv har? Tryk her for at oprette et Køb" NavigateUrl="~/Exchange/purchaseCreate.aspx"></asp:HyperLink>
            </div>
        </div>
        <div id="purchaseResultBox" class="contentBoxLarge floatLeft">
            <div id="purchaseResultBoxContent" class="purchaseSaleResultBoxContent floatLeft">
                <div id="purchasePaginationTop" class="purchaseSalePaginationBox floatLeft">
                    <div class="floatLeft">
                        <asp:Panel ID="panTopPagination" runat="server">


                        </asp:Panel>
                    </div>
                    <div class="floatRight">
                        <asp:Label ID="lblResultsPerPage" runat="server" Text="Resultater pr. side: "></asp:Label>
                        <asp:DropDownList ID="ddlResultsPerPage" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlResultsPerPage_SelectedIndexChanged">
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                            <asp:ListItem>20</asp:ListItem>
                            <asp:ListItem>30</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </div>
                <div id="purchaseResultDataList" class ="purchaseSaleResultDataList floatLeft">
                    <hr />
                    <asp:DataList ID="dlPurchaseResults" runat="server" OnItemDataBound="dlPurchaseResults_ItemDataBound" Width="964px">
                        <ItemTemplate>
                             <div>
                                <asp:HyperLink ID="hyLinkPurchaseResultTitle" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("PurchaseID", "~/Exchange/purchaseDetails.aspx?pid={0}") %>' CssClass="contentTitle link"></asp:HyperLink>
                            </div>
  
                            <div>
                                <asp:Label ID="lblPurchaseResultDateAndUser" runat="server" Text='<%# Eval("CreatedDate", "{0:dd-MM-yyyy}") + ", " + Eval("User.UserName") %>' Font-Italic="True" Font-Size="8pt"></asp:Label>
                            </div>
                            <br />
                            <div>
                                <asp:Label ID="lblPurchaseResultDescription" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                            </div>
                            <br />
                            <div>
                                <asp:HyperLink ID="hyLinkPurchseResultReadMore" runat="server" Text="Læs mere" NavigateUrl='<%# Eval("PurchaseID", "~/Exchange/purchaseDetails.aspx?pid={0}") %>' CssClass="link"></asp:HyperLink>
                            </div>
                            <br />
                            <hr />
                        </ItemTemplate>
                    </asp:DataList>
                    <div>
                        <asp:Label ID="lblNoResults" runat="server" Text="Der blev ikke fundet nogle resultater med de specificerede filtre." Visible="false"></asp:Label>
                    </div>
                    <hr />
                </div>
                <div class="floatLeft">
                    <asp:Panel ID="panPagination" runat="server">
                        
                    </asp:Panel>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
